<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:85:"E:\phpset\phpSet\www\new shop\shop\public/../application/index\view\issues\index.html";i:1541756406;s:72:"E:\phpset\phpSet\www\new shop\shop\application\index\view\comm\left.html";i:1541725668;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>商城后台</title>
    <link rel="shortcut icon" href="/new shop/shop/public/static/favicon.ico">
    <link href="/new shop/shop/public/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/animate.min.css" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/style.min.css?v=4.0.0" rel="stylesheet">
</head>
</html>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>商品信息</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="">
                        <!-- <a onclick="fnClickAddRow();" href="<?php echo url('index/issues/add'); ?>" class="btn btn-primary ">发布新的商品</a>-->
                    </div>
                    <table class="table table-striped table-bordered table-hover dataTables-example"  style="text-align: center">
                        <thead>
                        <tr>
                            <th  style="text-align: center;">编号</th>
                            <th  style="text-align: center;">品牌</th>
                            <th  style="text-align: center;">商品分类</th>
                            <th style="text-align: center">商品名</th>
                            <th style="text-align: center">商品图片</th>
                            <th style="text-align: center">商品属性</th>
                            <th style="text-align: center">库存</th>
                            <th style="text-align: center">是否上架</th>
                            <th style="text-align: center">市场价</th>
                            <th style="text-align: center">本站价</th>
                            <th style="text-align: center">活动价</th>
                            <th style="text-align: center">成本价</th>
                            <th style="text-align: center">审核情况</th>
                            <th style="text-align: center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?>
                        <tr class="gradeX" >
                            <td><?php echo $key+1; ?></td>
                            <td><?php echo $data['bname']; ?></td>
                            <td><?php echo $data['name']; ?></td>
                            <td><?php echo $data['iname']; ?></td>
                            <td><img src="/new shop/shop/public/static/img_issue/<?php echo $data['photo']; ?>" width="70px"></td>
                            <td>
                                <?php if($data['attr']==1): ?>推荐
                                <?php elseif($data['attr']==2): ?>精品
                                <?php elseif($data['attr']==3): ?>热销
                                <?php elseif($data['attr']==4): ?>新品
                                <?php endif; ?>
                            </td>
                            <td><?php echo $data['inventory']; ?></td>
                            <td>
                                <?php if($data['putaway']==0): ?>下架
                                <?php elseif($data['putaway']==1): ?>上架
                                <?php endif; ?>
                            </td>
                            <td><?php echo $data['bazaar']; ?>￥</td>
                            <td><?php echo $data['stand']; ?>￥</td>
                            <td><?php echo $data['active']; ?>￥</td>
                            <td><?php echo $data['cost']; ?>￥</td>
                            <td>
                                <?php if($data['audit']==1): ?>审核通过
                                <?php elseif($data['audit']==0): ?>审核未通过
                                <?php endif; ?>
                            </td>
                            <td width="15%">
                                <a  href="/new shop/shop/public/index/issues/mod/id/<?php echo $data['aid']; ?>" class="btn btn-info "><i class="fa fa-paste"></i> <span class="bold">修改</span></a>
                                <a  href="/new shop/shop/public/index/issues/del/id/<?php echo $data['aid']; ?>" onclick="return confirm('您确定删除吗？')" class="btn btn-warning "><i class="fa fa-warning"></i><span class="bold">删除</span></a>
                            </td>
                        </tr>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/new shop/shop/public/static/js/jquery.min.js?v=2.1.4"></script>
<script src="/new shop/shop/public/static/js/bootstrap.min.js?v=3.3.5"></script>
<script src="/new shop/shop/public/static/js/plugins/jeditable/jquery.jeditable.js"></script>
<script src="/new shop/shop/public/static/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="/new shop/shop/public/static/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="/new shop/shop/public/static/js/content.min.js?v=1.0.0"></script>
<script>
    $(document).ready(function(){$(".dataTables-example").dataTable();var oTable=$("#editable").dataTable();oTable.$("td").editable("../example_ajax.php",{"callback":function(sValue,y){var aPos=oTable.fnGetPosition(this);oTable.fnUpdate(sValue,aPos[0],aPos[1])},"submitdata":function(value,settings){return{"row_id":this.parentNode.getAttribute("id"),"column":oTable.fnGetPosition(this)[2]}},"width":"90%","height":"100%"})});function fnClickAddRow(){$("#editable").dataTable().fnAddData(["Custom row","New row","New row","New row","New row"])};
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>

</body>